home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
squota-0.02
/
Squota.tar
/
Squota
/
quotavars
< prev
next >
Wrap
Text File
|
1996-05-13
|
2KB
|
42 lines
#!/bin/bash
# Squota - Screwed Quota Copyright (c) 1996 Gary Barrueto
#=============================================================================
# HQ, FSLIMIT and WHATDIR is the only varibles you can modify
#=============================================================================
# so users can check their daily quota, the following should be added to
# /etc/profile :
# /usr/local/bin/Squotack
#=============================================================================
# HQ - where Squota resides
#=============================================================================
HQ=/var/adm/Squota
#=============================================================================
# $FSLIMIT is the # of megabytes you allow..
# Future release of this script will calculate $ due if over $FSLIMIT (average)
#=============================================================================
FSLIMIT=5
#=============================================================================
# $WHATDIR is where user homes reside
# you must have an entry in /etc/passwd as a defined home dir for a user
# since I use '~' to "cd" into directories.
#=============================================================================
WHATDIR=/home
#=============================================================================
# There is no need to edit below this line....
#=============================================================================
# $MON is the suffix of each file, this chages to Abbrev. of each month
#=============================================================================
MON=`date +%b`
# $DAY is the # of days to divide by to get average
DAY=`date +%d`
# This script needs a variable set it zero
EMPTY=0
# $PULENGTH sets # of users...
PULENGTH=`echo \`wc -l $HQ/quota.users\` | cut -d" " -f1`